package com.elderlyCare.service;

import com.elderlyCare.mapper.dataMapper;
import com.elderlyCare.pojo.SensorDataDaily;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class dataService {
    @Autowired
    private dataMapper dataMapper;

    public List<SensorDataDaily> getData() {
        return dataMapper.getData();
    }

    public List<String> getTemperature() {
        return dataMapper.getTemperature();
    }

    public List<String> getHumidity() {
        return dataMapper.getHumidity();
    }

    public List<String> getIllumination() {
        return dataMapper.getIllumination();
    }

    public List<String> getOxygen() {
        return dataMapper.getOxygen();
    }

    public List<String> getCarbonDioxide() {
        return dataMapper.getCarbonDioxide();
    }

    public List<String> getUltraviolet() {
        return dataMapper.getUltraviolet();
    }

    public List<String> getNoise() {
        return dataMapper.getNoise();
    }

    public List<String> getSmoke() {
        return dataMapper.getSmoke();
    }

    public List<String> getAcceleration() {
        return dataMapper.getAcceleration();
    }

    public List<String> getCombustible() {
        return dataMapper.getCombustible();
    }
}
